<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

class AppletCompany extends Model
{
    protected ?string $table = 'applet_company';

    public function applet()
    {
        return $this->hasOne(Applet::class, 'id', 'applet_id')->where(['status' => Applet::STATUS_SHOW])->select('id','name','status');
    }

}
